//
//  ViewController.h
//  musicplay
//
//  Created by cjz on 16/12/19.
//  Copyright © 2016年 apple-1511. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "music.h"
@interface ViewController : UIViewController
//音量大小。

@property(nonatomic,strong) UISlider * soundSlider;
//播放进度
@property(nonatomic,strong) UISlider * progressView;
//歌词显示的TableView
@property(nonatomic,strong) UITableView * lrcTableView;
//当前时间显示
@property(nonatomic,strong) UILabel * currentTimeLable;
//总时间显示
@property(nonatomic,strong) UILabel * totalTimeLable;
//播放按钮
@property(nonatomic,strong) UIButton * btnPlay;
//循环按钮
@property(nonatomic,strong) UIButton * btnCircle;
//上一曲按钮
@property(nonatomic,strong) UIButton * lastMusicBtn;
//下一曲按钮
@property(nonatomic,strong) UIButton * nextMusicBtn;
//菜单按钮
@property(nonatomic,strong) UIButton * menuBtn;
@property(nonatomic,strong)UIImageView *backview;
//功能属性
//播放器
@property(nonatomic,strong) AVAudioPlayer * player;
//存放歌曲的数组
@property(nonatomic,strong)NSMutableArray *musicarray;
//是否正在播放
@property(nonatomic,assign)BOOL isplay;
//是否循环播放
@property(nonatomic,assign)BOOL iscircle;
//
@property(nonatomic,assign)float tempVolume;
//播放当前歌曲
@property(nonatomic,strong)music *currentmusic;
//歌词的编号
@property(nonatomic,assign)NSInteger musicNumber;
//歌词属性，歌词从文件中获取，歌词的时间和歌词一一对应
//时间数组
@property(nonatomic,strong)NSMutableArray *timearray;
//歌词字典
@property(nonatomic,strong)NSMutableDictionary *lrcdictionary;
//歌词的行号
@property(nonatomic,assign)NSInteger lrcnumber;
@end

